package com.younion.vo;


import java.util.Date;
import java.util.List;

import cpcns.component.common.base.BaseVO;
import cpcns.persister.converter.IDomainObject;
import cpcns.persister.service.CompositeID;

public class API_FavourableEntityVO extends BaseVO implements IDomainObject,
		Cloneable {
	/**
	 * 主键id
	 * @code id
	 * @type NUMERIC
	 * @javaType Integer
	 * @pk instance="Id"
	 * @required true
	 * @index 1
	 * @oddeven 0
	 */
	private Integer id;
	/**
	 * 名称
	 */
	private String name;

	/**
	 * 价值
	 * @code value
	 * @type MONEY
	 * @javaType String
	 * @show 
	 * @index 3
	 * @oddeven 2
	 * @isAfterTwo 2
	 * @faint 
	 */
	private String value;

	/**
	 * 简单描述
	 * @code simple_description
	 * @type VARCHAR
	 * @javaType String
	 * @show 
	 * @length 250
	 * @index 4
	 * @oddeven 1
	 * @isAfterTwo 1
	 * @faint 
	 */
	private String simpleDescription;

	/**
	 * 详细描述
	 * @code detail
	 * @type TEXT
	 * @javaType String
	 * @show 
	 * @index 5
	 * @oddeven 2
	 * @isAfterTwo 2
	 * @typeHandle org.springframework.orm.ibatis.support.ClobStringTypeHandler
	 * @faint 
	 */
	private String detail;

	/**
	 * 未激活图片
	 * 
	 * @label 未激活图片
	 * @code nonactivated_pic
	 * @type VARCHAR
	 * @javaType String
	 * @show
	 * @length 40
	 * @index 13
	 * @oddeven 2
	 * @isAfterTwo 2
	 * @faint
	 */
	private String nonactivatedPic;

	/**
	 * 已激活图片
	 * 
	 * @label 已激活图片
	 * @code activated_pic
	 * @type VARCHAR
	 * @javaType String
	 * @show
	 * @isLast
	 * @length 40
	 * @index 14
	 * @oddeven 1
	 * @isAfterTwo 1
	 * @faint
	 */
	private String activatedPic;

	/**
	 * 可使用有效期开始
	 * @code beg_date
	 * @type TIMESTAMP
	 * @javaType java.util.Date
	 * @show 
	 * @index 7
	 * @oddeven 2
	 * @isAfterTwo 2
	 */
	private Date useBegDate;

	/**
	 * 可使用有效期结束
	 * @code end_date
	 * @type TIMESTAMP
	 * @javaType java.util.Date
	 * @show 
	 * @index 8
	 * @oddeven 1
	 * @isAfterTwo 1
	 */
	private Date useEndDate;

	/**
	 * 
	 * 可申请有效期开始
	 */
	private Date applyBegDate;
	/**
	 * 可申请有效期结束
	 */
	private Date applyEndDate;
	/**
	 * 可用时段开始
	 */
	private String validTimeFrom;
	/**
	 * 可用时段结束
	 */
	private String validTimeTo;
	/**
	 * Ԥ预发数量
	 */
	private Integer amount;
	private Integer favourAmount;
	/**
	 * 是否热门
	 */
	private Integer isHot;
	/**
	 * 是否推荐
	 */
	private Integer isRecommend;
	/**
	 * 是否最新
	 */
	private Integer isNew;
	/**
	 * 店面列表
	 */
	private List<ShopVO> shops;
	
	private Integer participate_num;
	
	private String cat_id;
	
	private String fav_id;
	
	/**
	 * 是否手机验证
	 * @code isAuthenByMoblie
	 * @type TINYINT
	 * @javaType Integer
	 * @show 
	 * @index 12
	 * @oddeven 1
	 * @isAfterTwo 1
	 * 1:是，0:否
	 */
	private String isAuthenByMoblie;
	
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getSimpleDescription() {
		return simpleDescription;
	}

	public void setSimpleDescription(String simpleDescription) {
		this.simpleDescription = simpleDescription;
	}

	public String getDetail() {
		return detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}

	public String getNonactivatedPic() {
		return nonactivatedPic;
	}

	public void setNonactivatedPic(String nonactivatedPic) {
		this.nonactivatedPic = nonactivatedPic;
	}

	public String getActivatedPic() {
		return activatedPic;
	}

	public void setActivatedPic(String activatedPic) {
		this.activatedPic = activatedPic;
	}

	public Date getUseBegDate() {
		return useBegDate;
	}

	public void setUseBegDate(Date useBegDate) {
		this.useBegDate = useBegDate;
	}

	public Date getUseEndDate() {
		return useEndDate;
	}

	public void setUseEndDate(Date useEndDate) {
		this.useEndDate = useEndDate;
	}

	public Date getApplyBegDate() {
		return applyBegDate;
	}

	public void setApplyBegDate(Date applyBegDate) {
		this.applyBegDate = applyBegDate;
	}

	public Date getApplyEndDate() {
		return applyEndDate;
	}

	public void setApplyEndDate(Date applyEndDate) {
		this.applyEndDate = applyEndDate;
	}

	public String getValidTimeFrom() {
		return validTimeFrom;
	}

	public void setValidTimeFrom(String validTimeFrom) {
		this.validTimeFrom = validTimeFrom;
	}

	public String getValidTimeTo() {
		return validTimeTo;
	}

	public void setValidTimeTo(String validTimeTo) {
		this.validTimeTo = validTimeTo;
	}

	public Integer getAmount() {
		return amount;
	}

	public void setAmount(Integer amount) {
		this.amount = amount;
	}

	public Integer getFavourAmount() {
		return favourAmount;
	}

	public void setFavourAmount(Integer favourAmount) {
		this.favourAmount = favourAmount;
	}

	public Integer getIsHot() {
		return isHot;
	}

	public void setIsHot(Integer isHot) {
		this.isHot = isHot;
	}

	public Integer getIsRecommend() {
		return isRecommend;
	}

	public void setIsRecommend(Integer isRecommend) {
		this.isRecommend = isRecommend;
	}

	public Integer getIsNew() {
		return isNew;
	}

	public void setIsNew(Integer isNew) {
		this.isNew = isNew;
	}

	public List<ShopVO> getShops() {
		return shops;
	}

	public void setShops(List<ShopVO> shops) {
		this.shops = shops;
	}

	public Integer getParticipate_num() {
		return participate_num;
	}

	public void setParticipate_num(Integer participate_num) {
		this.participate_num = participate_num;
	}

	public String getCat_id() {
		return cat_id;
	}

	public void setCat_id(String cat_id) {
		this.cat_id = cat_id;
	}

	public String getFav_id() {
		return fav_id;
	}

	public void setFav_id(String fav_id) {
		this.fav_id = fav_id;
	}

	public String getIsAuthenByMoblie() {
		return isAuthenByMoblie;
	}

	public void setIsAuthenByMoblie(String isAuthenByMoblie) {
		this.isAuthenByMoblie = isAuthenByMoblie;
	}

	public CompositeID getCompositeID() {
		CompositeID _id = super.getCompositeID();
		_id.clear();
		if (id != null) {
			_id.addKey("id", id);
		}
		return _id;
	}

}
